<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class UserRelation extends Model
{
    protected $table = "t_user_relation";

    public function user()
    {
        return $this->belongsTo('App\User','user_id','id');
    }

    public function parent()
    {
        return $this->belongsTo('App\User','parent_id','id');
    }
}
